<template>
	<view class="video-item" @click="itemClick">
		<view class="video-img">
			<image style="width: 100%;height: 100%;" mode="aspectFill" :src="itemData.videoAddress + '?x-oss-process=video/snapshot,t_0,f_jpg'"></image>
		</view>
		<image class="play-img" :src="asserts.ic_video_play"></image>
		<view class="title clamp1">{{itemData.tittle}}</view>
		<view class="user-row">
			<image :src="itemData.sculptureUrl" mode="aspectFill"></image>
			<view>{{itemData.userName}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			itemData: {
				type: Object,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			itemClick(){
				this.$emit('itemClick')
			}
		}
	}
</script>

<style scoped lang="less">
	.video-item{
		width: 350rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		border: 2rpx solid #F5F5F5;
		display: flex;
		flex-direction: column;
		margin-top: 16rpx;
		position: relative;
		.play-img{
			width: 32rpx;
			height: 32rpx;
			position: absolute;
			top: 16rpx;
			right: 16rpx;
			border-radius: 50%;
		}
		.video-img{
			width: 100%;
			height: 524rpx;
			border-radius: 16rpx 16rpx 0 0;
		}
		.title{
			font-size: 28rpx;
			line-height: 40rpx;
			color: #021624;
			margin: 16rpx;
		}
		.user-row{
			display: flex;
			flood-opacity: row;
			align-items: center;
			font-size: 24rpx;
			margin-left: 16rpx;
			margin-bottom: 16rpx;
			color: #585F70;
			image{
				width: 40rpx;
				height: 40rpx;
				border-radius: 50%;
				margin-right: 8rpx;
				background-color: #585F70;
			}
		}
	}
</style>
